import React,{useRef} from 'react';
import {connect} from '../react-redux'
class Add2 extends React.Component {
  constructor(props) {
    super(props);
    this.inputRef = React.createRef()
  }
  render() { 
    return (
      <input ref = {this.inputRef } />
    );
  }
}
function Add3 (props,ref){
  const inputRef = useRef()
  return (
    <input ref = {inputRef} />
  );
}
// export default 
export default connect(null, null, null, { forwardRef:true })(React.forwardRef(Add3));